.gallery {
    height: 100%;
    overflow: scroll;
    scroll-behavior: smooth;
    padding-left: 30px;
}
.case-wrap {
    display: flex;
    flex-wrap: wrap;
    transition: 0.25s;
    padding-bottom: 25px;
    .case {
        width: 240px;
        // height: 180px;
        // background: #ccc;
        margin: 10px 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: 0.3s;
        .case-thumbnail {
            transition: 0.3s;
            border: 1px solid #efefef;
            border-radius: 5px;
            display: flex;
            align-items: center;
            padding: 2px;
            width: 240px;
            height: 160px;
            box-shadow: 0 0 20px rgb(0 0 0 / 5%);
            background: white;
            // box-shadow: 0px 0px 12px 2px #d0d0d0c2;
            img {
                width: 240px;
                height: 160px;
                // border: 1px solid #cddaff;
            }
            &:hover {
                // background-color: #000;
                // .case-thumbnail {
                border: 1px solid transparent;
                transform: scale(1.05) translateY(-5px);
                box-shadow: 0px 3px 10px 1px #e2e2e2;
                // }
            }
        }
        .link-mode {
            img {
                height: 160px;
                width: 160px;
                margin: auto;
            }
        }
        .case-name {
            width: 100%;
            height: 100%;
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            a {
                color: #0059f8;
                &:link {
                    text-decoration: none;
                }

                &:visited {
                    text-decoration: none;
                }

                &:hover {
                    text-decoration: none;
                }

                &:active {
                    text-decoration: none;
                }
            }
            strong {
                font-weight: 400;
            }
        }
    }
}

.github-icon {
    position: relative;
    &:hover {
        &::after {
            color: white;
            content: "view in github";
            position: absolute;
            top: 35px;
            width: 101px;
            left: -35px;
            background: rgb(0 0 0);
            padding: 6px;
            border-radius: 2px;
        }
        &::before {
            content: "";
            position: absolute;
            top: 32px;
            left: 5px;
            background: rgb(0 0 0);
            width: 15px;
            height: 15px;
            transform: rotate(45deg);
        }
    }
}

.sub-title {
    h2,
    h4 {
        display: inline-block;
    }
    h4 {
        margin-left: 10px;
        color: #b9b9b9;
    }
    width: 97%;
    border-bottom: 1px dashed #e1dfdf;
    margin-bottom: 18px;
}
